import request from '@/utils/request'

// 查询房屋订单列表
export function listHouseOrder(query) {
  return request({
    url: '/system/houseOrder/list',
    method: 'get',
    params: query
  })
}

// 查询房屋订单详细
export function getHouseOrder(id) {
  return request({
    url: '/system/houseOrder/' + id,
    method: 'get'
  })
}

// 新增房屋订单
export function addHouseOrder(data) {
  return request({
    url: '/system/houseOrder',
    method: 'post',
    data: data
  })
}

// 修改房屋订单
export function updateHouseOrder(data) {
  return request({
    url: '/system/houseOrder',
    method: 'put',
    data: data
  })
}

// 删除房屋订单
export function delHouseOrder(id) {
  return request({
    url: '/system/houseOrder/' + id,
    method: 'delete'
  })
}
